package com.dengyin2000.javaeye.ordering.action;

import org.jboss.seam.annotations.Factory;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.framework.HibernateEntityHome;

import com.dengyin2000.javaeye.ordering.entity.Dish;

@Name("dishAction")
public class DishAction extends HibernateEntityHome<Dish> {

	private static final long serialVersionUID = -5753949285958178318L;
	private Long shopId;
	
	@Factory("editDish")
	public Dish buildDish() {
		return getInstance();
	}

	@Override
	protected String getPersistenceContextName() {
		return "orderingDatabase";
	} 
	
	public Long getShopId() {
		return shopId;
	}

	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}
}
